import requests

url = 'http://47.108.206.100:8080/admin/login'

body = {
    'username': 'admin',
    'password': 'macro123'
}

response = requests.post(url, json=body)

print(response.status_code)
print(response.json())
print(response.json().get('message'))
print(response.json().get('message1'))  # 不会报错,得到None
print(response.json()['message'])
print(response.json().get('data').get('tokenHead'))
